package com.Logistics.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("pd_common_login_log")
public class CommonLoginLog implements Serializable {

    private static final long serialVersionUID = -4491034332146637277L;
    @TableField("id")
    private String id;
    /**
     * 操作ip
     */
    @TableField("request_ip")
    private String requestIp;
    /**
     * 登录人口
     */
    @TableField("user_id")
    private String userId;
    /**
     * 登录人姓名
     */
    @TableField("user_name")
    private String userName;
    /**
     * 登录人账号
     */
    @TableField("account")
    private String account;
    /**
     *登录描述
     */
    @TableField("description")
    private String description;
    /**
     * 登录时间
     */
    @TableField("login_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date loginDate;
    /**
     * 浏览器请求头
     */
    @TableField("ua")
    private String ua;
    /**
     * 浏览器名称
     */
    @TableField("browser")
    private String browser;
    /**
     * 浏览器版本
     */
    @TableField("browser_version")
    private String browserVersion;
    /**
     * 操作系统
     */
    @TableField("operating_system")
    private String operatingSystem;
    /**
     * 登录地点
     */
    @TableField("location")
    private String location;

    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @TableField("create_user")
    private String createUser;


}
